<?php /* Smarty version Smarty-3.0.7, created on 2011-10-07 13:33:20
         compiled from "components/filter/impositionfilter.tpl" */ ?>
<?php /*%%SmartyHeaderCode:13300870984e8ee38060eed2-13663301%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'ace3d5c9469a7ad63b38f1f09b75517bb5bcf1ed' => 
    array (
      0 => 'components/filter/impositionfilter.tpl',
      1 => 1317986832,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '13300870984e8ee38060eed2-13663301',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<div id="<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
_wrapper" class="filterwrapper">
	<div class="filtertitle"><?php echo $_smarty_tpl->getVariable('mainlist')->value['comptitle'];?>
</div>
	<div id="<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
_detail"  class="hide filtertableborder"></div>
		<input type="hidden" id="<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
_accids" />
		<div><span class="bold">Account selection: </span><span id="<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
_accidsnum">0</span> <?php echo $_smarty_tpl->getVariable('mainlist')->value['lblselectedaccnum'];?>
</div>
		<div id="<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
_impositiondiv" class="filtertable">
			<?php echo $_smarty_tpl->getVariable('bopen')->value;?>

				<table>
					<?php $_smarty_tpl->tpl_vars['i'] = new Smarty_Variable;$_smarty_tpl->tpl_vars['i']->step = 1;$_smarty_tpl->tpl_vars['i']->total = (int)ceil(($_smarty_tpl->tpl_vars['i']->step > 0 ? ceil(count($_smarty_tpl->getVariable('imps')->value)/2)+1 - (1) : 1-(ceil(count($_smarty_tpl->getVariable('imps')->value)/2))+1)/abs($_smarty_tpl->tpl_vars['i']->step));
if ($_smarty_tpl->tpl_vars['i']->total > 0){
for ($_smarty_tpl->tpl_vars['i']->value = 1, $_smarty_tpl->tpl_vars['i']->iteration = 1;$_smarty_tpl->tpl_vars['i']->iteration <= $_smarty_tpl->tpl_vars['i']->total;$_smarty_tpl->tpl_vars['i']->value += $_smarty_tpl->tpl_vars['i']->step, $_smarty_tpl->tpl_vars['i']->iteration++){
$_smarty_tpl->tpl_vars['i']->first = $_smarty_tpl->tpl_vars['i']->iteration == 1;$_smarty_tpl->tpl_vars['i']->last = $_smarty_tpl->tpl_vars['i']->iteration == $_smarty_tpl->tpl_vars['i']->total;?>
						<tr>
							<td width="400px">
								<?php echo $_smarty_tpl->getVariable('imps')->value[('doublecb').($_smarty_tpl->tpl_vars['i']->value)];?>

							</td>
							<td width="400px">
								<?php $_smarty_tpl->tpl_vars['j'] = new Smarty_variable($_smarty_tpl->tpl_vars['i']->value+ceil(count($_smarty_tpl->getVariable('imps')->value)/2), null, null);?>
								<?php echo $_smarty_tpl->getVariable('imps')->value[('doublecb').($_smarty_tpl->getVariable('j')->value)];?>

							</td>
						</tr>
					<?php }} ?>
				</table>
				<table class="center">
					<tr>
						<td width="300px">
							<?php echo $_smarty_tpl->getVariable('impositiontypes')->value;?>

						</td>
						<?php if ($_smarty_tpl->getVariable('mainlist')->value['semesters']){?>
						<td width="300px">
							<input type="checkbox" id="<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
_cb_currsem" onclick="setDoubleCb('<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
');"/><?php echo $_smarty_tpl->getVariable('mainlist')->value['lblcurrsem'];?>
<br/>
							<input type="checkbox" id="<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
_cb_priorsem" onclick="setDoubleCb('<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
');"/><?php echo $_smarty_tpl->getVariable('mainlist')->value['lblpriorsem'];?>
<br/>
						</td>
						<?php }?>
					</tr>
				</table>			
				<table>
					<tr>
						<td width="400px">
							<?php echo $_smarty_tpl->getVariable('sourceptlist')->value;?>

						</td>
						<td width="400px">
							<?php echo $_smarty_tpl->getVariable('destinationptlist')->value;?>

						</td>
					</tr>
				</table>
			<?php echo $_smarty_tpl->getVariable('bclose')->value;?>

		</div>
	<div>
		<div class="buttondiv">
			<input type="checkbox" id="<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
_cb_pending" checked="checked"/>Show pendings<br/> 
			<input type="button" id="<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
_btn_search" onclick="setDoubleCbImposition('<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
');" value="<?php echo $_smarty_tpl->getVariable('mainlist')->value['lblsearch'];?>
" /> 
			<div id="<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
_div_working" class="hide">
				Working ...
			</div>
			<div id="<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
_div_cancel" class="hide">
				This search may take a minute. You can <span class="modullink setpointer" onclick="lastRequest.cancel(); $('<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
_div_cancel').removeClass('filtertable'); document.body.style.cursor = 'default';">cancel</span>	it
			</div>
		</div>
		<div id="<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
_searchdiv" class="filtertable">
			<?php echo $_smarty_tpl->getVariable('searchtable')->value;?>

		</div>
		<br />
	</div>
</div>
<script language="javascript">
	//fillStatus("<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
");
	setFilterStatus("<?php echo $_smarty_tpl->getVariable('list')->value['compname'];?>
","<?php echo $_smarty_tpl->getVariable('list')->value['name'];?>
")
	var <?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
_impfilter = new ImpositionFilter("<?php echo $_smarty_tpl->getVariable('mainlist')->value['compname'];?>
_impfilter");
</script>
